Skip to content

Fix MimeMessage::extract_uue() ignoring index greater than zero#68

Closed
iliaal wants to merge 1 commit into
masterfrom
fix/extract-uue-index
Closed

Fix MimeMessage::extract_uue() ignoring index greater than zero#68
iliaal wants to merge 1 commit into
masterfrom
fix/extract-uue-index

Conversation

@iliaal

@iliaal iliaal commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

What

MimeMessage::extract_uue($index, ...) returns NULL for any $index >= 1, so only the first uuencoded attachment in a message is reachable.

The method compares a part counter nparts against $index but never increments it, unlike the sibling enum_uue which does. So nparts == index only ever matches index 0.

Fix

Increment nparts after skipping a non-matching part, so the counter advances to the requested index.

@iliaal

iliaal commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #73, reopened from the fork (iliaal/pecl-mail-mailparse). Branch should not have been pushed to php/ directly.

@iliaal iliaal closed this Jun 19, 2026
@iliaal iliaal deleted the fix/extract-uue-index branch June 19, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant